package com.admin.system.auth.entity;

import org.apache.shiro.authc.AuthenticationToken;

public class LoginToken implements AuthenticationToken {
	private static final long serialVersionUID = -4291846532270950781L;
	private String userName;
	private String password;
	private String captcha;
	private boolean rememberMe;
	private String GA;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean isRememberMe() {
		return rememberMe;
	}

	public void setRememberMe(boolean rememberMe) {
		this.rememberMe = rememberMe;
	}

	public String getGA() {
		return GA;
	}

	public void setGA(String gA) {
		GA = gA;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public Object getPrincipal() {
		return userName;
	}

	@Override
	public Object getCredentials() {
		return password;
	}

}
